package org.example.mulitithreading.ex3;

public class Demo {
    public static void main(String[] args) {
        MyThread1 t1 = new MyThread1();
        t1.setName("小路同学");
        MyThread2 t2 = new MyThread2();
        t2.setName("小皮同学");

        t1.start();
        t2.start();

        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Main Thread, check Money: " + Money.money);
    }
}

